from socket import *
import sys

host = 'localhost'
port = 48710
addr = (host,port)

udp_socket = socket(AF_INET, SOCK_DGRAM)

cmd = -1

while(True):
    #cmd = int(input("CMD:\t"))
    #udp_socket.sendto(cmd.to_bytes(4, 'big'), addr)
    cmd = input("CMD:\t")
    udp_socket.sendto(cmd.encode('utf-8'), addr)

udp_socket.close()
